Unifying Hybrid Types and Contracts

نویسندگان

  • Jessica Gronski
  • Cormac Flanagan
چکیده

Contract systems and hybrid type systems provide two alternative approaches for enforcing precisely-defined interface specifications, with complementary advantages: contract systems excel at blame assignment, whereas hybrid type systems support type-based static analysis. We unify these two approaches by demonstrating that hybrid type checking is sufficiently expressive to encode higher-order contracts with proper blame assignment. In particular, a contract obligation that enforces both sides of a contract is decomposed into two type casts that each enforce one side of the contract. This expressiveness result provides several benefits, including allowing one of these casts to be lifted from variable references to variable definitions, resulting in improved contract coverage and removing the need for privileged contract obligations.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Unifying Theories of Reactive Design Contracts

Design-by-contract is an important technique for model-based design in which a composite system is specified by a collection of contracts that specify the behavioural assumptions and guarantees of each component. In this paper, we describe a unifying theory for reactive design contracts that provides the basis for modelling and verification of reactive systems. We provide a language for express...

متن کامل

بررسی تطبیقی شرایط عقود اسلامی و قراردادهای پشتیبانی بانکداری اسلامی (مورد مطالعه: بانک شهر)

Islam emphasizes all social issues, especially healthy economic relations. What has led to the need to examine and address the issues of contracts in Islam and the contracts of support in Islamic banking, is the existence of various contracts in the society. In this research, it is tried to examine the compatibility of the contracts of support in Islamic banking with the contractual and religio...

متن کامل

Developing a framework for studying and evaluating the types of psychological contracts in the context of relationship marketing

Nowadays, belief in the criteria and conditions of interactions with an organization to promote customer relationships is somehow tied to the organizational performance, and its final goal is of great importance. In the literature on organizational behavior, this belief is defined as the “psychological contract”. The intention of this mixed research is to identify and discover the contents of p...

متن کامل

Access contracts: a dynamic approach to object-oriented access protection

In object-oriented (OO) programming, variables do not contain objects directly but ad-dresses of objects on the heap. Thus, several variables can point to the same object; wecall this aliasing.Aliasing is a central feature of OO programming that enables efficient sharing of objectsacross a system. This is essential for the implementation of many programming idioms,such as it...

متن کامل

The General Rules of Contracts and the Rules of Anti-avoidance and Anti-evasion Paying Taxes (Tax Fraud)

Taxation issues are among the factors which balance between private rights and public interests. But the legal system of contracts also works for the welfare of the people and society. The general rules of contracts and the principles of private law have found their essential functions during the years.  Applying the above rules aimed at preserving public order along with the private rights of ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007